package hu.myai.model.graph;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public abstract class AbstractNode {

	String name = "";

	List<AbstractNode> nextNodeList = new ArrayList<AbstractNode>();

	protected final Log log = LogFactory.getLog(this.getClass());

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<AbstractNode> getNextNodeList() {
		return nextNodeList;
	}

	public void setNextNode(List<AbstractNode> nextNodeList) {
		this.nextNodeList = nextNodeList;
	}

	public void addNextNode(AbstractNode nextNode) {
		this.nextNodeList.add(nextNode);
	}
}
